import request from '@/utils/request'

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/system/document/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/system/document/edit',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI(query) {
  return request({
    url: '/system/document/' + query,
    method: 'DELETE'
  })
}

// 详情
export function GetDelDataAPI(query) {
  return request({
    url: '/document/' + query,
    method: 'get'
  })
}

// 编码校验列表
export function GetListAPI(query) {
  return request({
    url: '/system/document/list',
    method: 'get',
    params: query
  })
}

// 获取按键
export function GetMenuPermsAPI(data) {
  return request({
    url: '/system/menu/menuPerms/' + data,
    method: 'GET'
  })
}

// 获取页面
export function GetMenuPermAPI(query) {
  return request({
    url: '/system/menu/menuPage',
    method: 'GET'
  })
}
